import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useUserStore = defineStore(
  'user',
  () => {
    // 记录用户登录状态
    const token = ref('')

     // 用户 id
     const userId = ref('')

     return { token, userId }
  },
  {
    unistorage: true,
  }
)
